<%-- 
    Document   : alumniperinschrijving
    Created on : Jul 14, 2013, 8:39:03 PM
    Author     : Logic
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="info.toegepaste.www.beans.Alumnus"%>
<%@page import="info.toegepaste.www.beans.Account"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Alumni per inschrijving</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <a href="index.jsp"><h1>Alumni</h1></a>
        <br>
        <%Account login = (Account) session.getAttribute("login");
            Alumnus alumnus = (Alumnus) session.getAttribute("alumnus");

        %>
        <label<%if (login != null) {%>

            <p>Welkom <%=alumnus.getVoornaam()%> <%=alumnus.getAchternaam()%></p>

            <%}%>
        </label>
        <table style="border: 1px solid white;">
            <thead>
            <th>AlumnusID</th>
            <th>Voornaam</th>
            <th>Achternaam</th>
            <th>Email</th>
            <th>Afstudeerjaar</th>
            <th>Sinds</th>
        </thead>
        <tbody>
            <%ArrayList<Alumnus> alumni = (ArrayList<Alumnus>) request.getAttribute("alumni");%>
            <%for (Alumnus alumnos : alumni) {%>
            <tr>
                <td><%=alumnos.getAlumnusID()%></td>
                <td><%=alumnos.getVoornaam()%></td>
                <td><%=alumnos.getAchternaam()%></td>
                <td><%=alumnos.getEmailprive()%></td>
                <td><%=alumnos.getAfstudeerjaar()%></td>
                <td><%=alumnos.getSinds()%></td>
            </tr>
            <%}%>
        </tbody>
    </table>
</body>
</html>
